#include "junix.h"
using namespace std;

struct my_exception : public exception {
	public:
		const char* what() const throw() {
			return "my_exception\n";
		}
};

void f() throw(my_exception) {
	throw my_exception();
}

int main(int argc, char **argv)
{
	try{
		f();
	} catch (my_exception const& e) {
		std::cout<<e.what()<<std::endl;
	}
}
